import java.util.Scanner;

public class hesapmakinesi {
    public static void main(String[] args) {
        String ad,soyAd,cinsiyet;
        int yas;
        double boy,kilo,endex;



        Scanner input = new Scanner(System.in);

        System.out.println("İsim gir");
        ad = input.nextLine();

        System.out.println("Soy isim  gir");
        soyAd = input.nextLine();

        System.out.println("Yaşını Gir");
        yas  = input.nextInt();
        input.nextLine();

        System.out.println("Cinsiyetini Gir");
        cinsiyet = input.nextLine();

        System.out.println("Boyunu Gir");
        boy = input.nextDouble();

        System.out.println("Kilonu  Gir");
        kilo = input.nextDouble();
        double gelenYas;
        gelenYas = ((yas / 10) <= 0) ? 1.01 : (1.01 + ((yas / 10) * 0.010));
        endex = kilo/(boy*boy)*10000;


       switch (cinsiyet.toLowerCase()){
           case "erkek":
               endex = endex+gelenYas;
               break;

           case "kadin":
               endex = (endex * 0.9)*gelenYas;
               break;
           default:
               System.out.println("Yanlış işlem yaptınız");

       }
        System.out.println("Vucut Kitle endeksiniz : " + endex);



        }

    }

